resourceloader: Simplify getHashMtime() to merely a timestamp
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 31 Mar 2015 18:17:11 +0000 (19:17 +0100)
committerOri.livneh <ori@wikimedia.org>
Tue, 31 Mar 2015 20:57:07 +0000 (20:57 +0000)
commit885a1e0703984cc9d4665b168b0097e20f2dc695
treef4d673164890084490559ae7f2f3a4d48c751504
parentba6431cbb92ff5df20f718c95e9ab1f73b4d15fe
resourceloader: Simplify getHashMtime() to merely a timestamp

Similar to what getDefinitionMtime() does already. No need to
repeat the hash. No need for an array that needs serialising and
unserialising internally.

Change the hash key to avoid using old cache values.

Also moved the comment about hashes being included in the key to
this method. getDefinitionMtime() is a later method that performs
the same logic but doesn't need the entire story again.

Follows-up 044713c4d3bdda32.

Change-Id: Idd83de5ac27138a2dbf2ec49d81ea9188bd6ad57
includes/resourceloader/ResourceLoaderModule.php